/* 字体大小 font-size */
@fs-base: 16px;
@fs-large: 24px;
@fs-small: 14px;

/* 颜色 color */
@color-text: #333;
@color-gray: #ccc;
@color-primary: #4caf50;
@color-secondary: #ffc107;
@color-error: #f44336;
@color-success: #4caf50;

/* 内外边距 padding margin */
each(range(0,20), {
	.p-@{value} {
        padding: @value * 1px;
    }
	.pt-@{value} {
        padding-top: @value * 1px;
    }
	.pb-@{value} {
        padding-bottom: @value * 1px;
    }
	.pl-@{value} {
        padding-left: @value * 1px;
    }
	.pr-@{value} {
        padding-right: @value * 1px;
    }
	.px-@{value} {
        padding-left: @value * 1px;
        padding-right: @value * 1px;
    }
	.py-@{value} {
        padding-top: @value * 1px;
        padding-bottom: @value * 1px;
	}


	.m-@{value} {
		margin: @value * 1px;
	}
	.ml-@{value} {
        margin-left: @value * 1px;
    }
	.mr-@{value} {
        margin-right: @value * 1px;
    }
	.mb-@{value} {
        margin-bottom: @value * 1px;
    }
	.mt-@{value} {
        margin-top: @value * 1px;
    }
	.mx-@{value} {
        margin-left: @value * 1px;
        margin-right: @value * 1px;
    }
	.my-@{value} {
        margin-top: @value * 1px;
        margin-bottom: @value * 1px;
	}
})

/* 公共样式 */
.page-content {
	padding: 20px 50px;
	font-size: 14px;
	width: calc(100% - 100px);
	margin: 0 auto;

	.menu {
		display: flex;
		border-bottom: 3px solid black;
		margin-bottom: 20px;

		&-item {
			font-size: @fs-large;
			font-weight: bold;
			cursor: pointer;
			padding: 10px 0;
			margin-right: 50px;
			color: @color-gray;
			background-color: #fff;
		}
	}

	.member-list {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
        width: 100%;

		.member-item {
			width: calc(48% - 40px);
			padding: 20px;
			display: flex;
			justify-content: space-between;
			margin-bottom: 30px;
			border: solid #ccc 2px;
			position: relative;
			animation: floatUp 1s ease-in-out;
			font-size: 12px;
			height: 20em;
			overflow: hidden;

			&:hover {
				color: #007aff;
				cursor: pointer;
				border: solid #007aff 2px;
			}

			&-picture {
				width: 40%;
				height: 100%;
				object-fit: cover;
			}

			&-info {
				display: flex;
				flex-direction: column;
				justify-content: flex-start;
				width: 55%;
				overflow: hidden;
			}

			.title {
				display: flex;
				align-items: flex-end;
				width: 90%;
				font-size: @fs-base;
				font-weight: bold;
				margin-bottom: 10px;
				border-bottom: solid #ccc 2px;
				padding-bottom: 10px;
			}

			.subtitle {
				font-size: @fs-small;
				color: #ccc;
				font-weight: normal;
			}

			.desc {
				line-height: 1.5em;
				letter-spacing: 0.1em;
				margin-bottom: 10px;
				color: #555;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 15;
				text-align: justify;
				white-space: pre-line;
			}

			.go {
				position: absolute;
				bottom: 8px;
				font-size: 24px;
				font-weight: bold;
				right: 50%;
			}
		}
	}

	@media screen and (max-width: 768px) {
		padding: 10px;
        width: calc(100% - 20px);
		font-size: @fs-small;

		.menu {
			justify-content: space-around;
            font-size: @fs-base;

			&-item {
				font-size: @fs-base;
				margin-right: 0;
			}
		}

		.member-list {
            .member-item {
                width: calc(100% - 40px);
                font-size: @fs-small;
                height: 25em;
                flex-direction: column;
    
                &-picture {
                    width: 100%;
                    height: 50%;
                }
    
                &-info {
                    margin: 10px 0;
                    width: 100%;
                    height: 15em;
    
                    .desc {
                        -webkit-line-clamp: 11;
                    }
                }
            }
        }
	}
}

/* 浮上动画 */
@keyframes floatUp {
	from {
		transform: translateY(100px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

// p {
// 	font-family: 'Avenir', Helvetica, Arial, sans-serif;
// 	-webkit-font-smoothing: antialiased;
// 	-moz-osx-font-smoothing: grayscale;
// 	text-align: justify;
// 	color: #2c3e50;
// 	line-height: 1.5;
// }